<div class="bg-light lter b-b wrapper-sm">
    <h1 class="m-n font-thin h4">编辑承运商</h1>
</div>
<div class="wrapper-sm">
    <uib-tabset class="tab-container" active="1" ng-init="steps={percent:20}">
        <uib-tab heading="基本信息" index="1" select="steps.percent=20">
            <uib-progressbar value="20" class="progress-xs" type="success"></uib-progressbar>
            <form id="form" name="step1" class="form-validation form-horizontal" ng-controller="carrierManagentEditController">
                <div class="form-group">
                    <label class="col-lg-2 control-label">承运商类型<span class="text-danger">*</span></label>
                    <div class="col-lg-2">
                        <select class="form-control input-sm" ng-model="carrierType" ng-options="x.value as x.text for x in carrierTypeDropDown" required>
                            <option value="">请选择</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">承运商名称<span class="text-danger">*</span></label>
                    <div class="col-lg-2">
                        <input type="text" class="form-control input-sm" ng-model="carrierName" placeholder="请填写承运商名称" required name="name" id="name">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">承运商号码<span class="text-danger">*</span></label>
                    <div class="col-lg-2">
                        <input type="tel" class="form-control input-sm" ng-model="carrierPhone" placeholder="请填写承运商号码" name="phone" ng-pattern="/^1\d{10}$/" id="phone">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">承运商地址</label>
                    <div class="col-lg-2">
                        <input type="text" class="form-control input-sm" ng-model="carrierAddress" placeholder="请填写承运商地址" name="address" id="address">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">承运商等级<span class="text-danger">*</span></label>
                    <div class="col-lg-2">
                        <select class="form-control input-sm" ng-model="carrierLevel" ng-options="x.value as x.text for x in carrierLevelDropDown">
                            <option value="">请选择</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">备注</label>
                    <div class="col-lg-4">
                        <textarea class="form-control input-sm" ng-model="carrierRemarks" placeholder="请填写备注" name="remark"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="m-t m-b col-lg-4">
                            <!-- ui-sref="app.carrier.carrierManagent" -->
                        <button class="btn btn-sm btn-default btn-rounded pull-right m-l-sm" ng-click="backUrl()">返回</button>
                        <button class="btn btn-sm btn-default btn-rounded pull-right" ng-disabled="step1.$invalid" ng-click="carrierSave()">保存</button>
                    </div>
                </div>
            </form>
        </uib-tab>
        <uib-tab heading="资质信息" disabled="step1.$invalid" select="steps.percent=35" ui-sref="app.carrier.carrierAttachment"></uib-tab>
        <uib-tab heading="账户信息" disabled="step2.$invalid" select="steps.percent=55" ui-sref="app.carrier.carrierBankEdit"></uib-tab>
        <uib-tab heading="主营线路" disabled="step3.$invalid" select="steps.percent=75" ui-sref="app.carrier.carrierRouteManagent"></uib-tab>
        <!--<uib-tab heading="所属车辆" disabled="step4.$invalid" select="steps.percent=100" ui-sref="app.carrier.carrieCarEdit"></uib-tab>-->
    </uib-tabset>
</div>